@CHARSET "UTF-8";

* {
	margin: 0;
	padding: 0;
}

body {
	font-family: arial, sans-serif;
	font-size: 100%;
	margin: 3em;
	background: #666;
	color: #fff;
}

h2, p {
	font-size: 100% ； font-weight:normal;
}

ul, li {
	list-style: none;
}

ul {
	overflow: hidden;
	padding: 3em;
}

ul li a {
	text-decoration: none;
	color: #000;
	background: #ffc;
	display: block;
	height: 10em;
	width: 10em;
	padding: 1em;
	-moz-box-shadow: 5px 5px 7px rgba(33, 33, 33, 1);
	-webkit-box-shadow: 5px 5px 7px rgba(33, 33, 33, .7);
	box-shadow: 5px 5px 7px rgba(33, 33, 33, .7);
	/*倾斜正方形*/
	-webit-transform: rotate(-6deg);
	-o-transform: rotate(-6deg);
	-moz-transform: rotate(-6deg);
	/*添加鼠标放上时的平滑过渡*/
	-moz-transition: -moz-transform .15s linear;
	-o-transition: -o-transform .15s linear;
	-webkit-transition: -webkit-transform .15s linear;
}

ul li {
	margin: 1em;
	float: left;
}

ul li h2 {
	font-size: 140%;
	font-weight: bold;
	padding-bottom: 10px;
}

ul li p {
	font-family: "Reenie Beanie", arial, sans-serif, 微软雅黑;
	font-size: 60%;
}

ul li:nth-child(even) a {
	-o-transform: rotate(4deg);
	-webkit-transform: rotate(4deg);
	-moz-transform: rotate(4deg);
	position: relative;
	top: 5px;
	background: #cfc;
}

ul li:nth-child(3n) a {
	-o-transform: rotate(-3deg);
	-webkit-transform: rotate(-3deg);
	-moz-transform: rotate(-3deg);
	position: relative;
	top: -5px;
	background: #ccf;
}

ul li:nth-child(5n) a {
	-o-transform: rotate(5deg);
	-webkit-transform: rotate(5deg);
	-moz-transform: rotate(5deg);
	position: relative;
	top: -10px;
}

ul li a:hover, ul li a:focus {
	-moz-box-shadow: 10px 10px 7px rgba(0, 0, 0, .7);
	-webkit-box-shadow: 10px 10px 7px rgba(0, 0, 0, .7);
	-box-shadow: 10px 10px 7px rgba(0, 0, 0, .7);
	-webkit-transform: scale(1.25);
	-moz-transform: scale(1.25);
	-o-transform: scale(1.25);
	position: relative;
	z-index: 5;
}

/*  autoplay*/
#container {
	width: 960px;
	margin: auto;
}

#wrapper {
	width: 740px;
	float: left;
}

p { //
	line-height: 600px;
	text-align: center;
	font-weight: bold;
	font-size: 1em;
	margin: 0 0 20px 0;
}

#main {
	width: 520px;
	float: right;
	background: yellow; /* 黄色 */
}

#sub01 {
	width: 200px;
	float: left;
	background: orange; /* 橙色 */
}

#sub02 {
	width: 200px;
	float: right;
	background: green; /* 緑色 */
}
/* 窗口宽度在1000px以上 */
@media screen and (min-width: 1000px) {
	/* 3栏显示*/
	#container {
		width: 1000px;
	}
	#wrapper {
		width: 780px;
		float: left;
	}
	#main {
		width: 560px;
		float: right;
	}
	#sub01 {
		width: 200px;
		float: left;
	}
	#sub02 {
		width: 200px;
		float: right;
	}
}
/* 窗口宽度在640px以上、999px以下 */
@media screen and (min-width: 640px) and (max-width: 999px) {
	/* 2栏显示 */
	#container {
		width: 640px;
	}
	#wrapper {
		width: 640px;
		float: none;
	}
	p { //
		line-height: 40px;
	}
	#main {
		width: 420px;
		float: right;
	}
	#sub01 {
		width: 200px;
		float: left;
	}
	#sub02 {
		width: 100%;
		float: none;
		clear: both;
		line-height: 150px;
	}
}
/* 窗口宽度在639px以下 */
@media screen and (max-width: 639px) {
	/* １栏显示  */
	#container {
		width: 100%;
	}
	#wrapper {
		width: 100%;
		float: none;
	}
	body {
		margin: 20px;
	}
	p { //
		line-height: 300px;
	}
	#main {
		width: 100%;
		float: none;
	}
	#sub01 {
		width: 100%;
		float: none; //
		line-height: 100px;
	}
	#sub02 {
		width: 100%;
		float: none;
		line-height: 100px;
	}
}